package com.nowcoder.community.entity;

import lombok.Data;

import java.util.Date;

@Data
public class DiscussPost {

    private int id; // 帖子id
    private int userId; // 用户id
    private String title; // 帖子标题
    private String content; // 内容
    private int type; // 帖子类型
    private int status; // 状态
    private Date createTime; // 创建时间
    private int commentCount; // 评论数
    private double score; // 分数


    @Override
    public String toString() {
        return "DiscussPost{" +
                "id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", createTime=" + createTime +
                ", commentCount=" + commentCount +
                ", score=" + score +
                '}';
    }
}
